<%= link_to_remote "replace", :url => { :action => "replace"} %>
<div id="mydiv"></div>